<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
</head>

<body>
    <div id="root"></div>
    <div id="tableRoot"></div>

    <script src="../../../tools/mathtool.js"></script>
    <script src="../../../tools/data_structure.js"></script>
    <script src="../../../tools/styletool.js"></script>
    <script src="../../../tools/mytable.js"></script>

    <script>
        /* 造1234条学生数据 */
        const students = createStudents(1234)
        console.log(students);

        const mt = new MyTable(
            tableRoot,
            students,
            {
                thead: ["ID", "姓名", "年龄", "性别", "班级", "薪水"],

                // 使用使用默认布局（布局+样式）
                useDefaultLayout: true,
            }
        )
    </script>

    <!-- <script>
        const styles = parseCss(
            `
* {
    margin: 0;
    padding: 0;
}

.container {
    width: 800px;
    height: 40px;
    border: 1px solid #333;
    margin: 30px auto;
}

table {
    width: 800px;
    margin: 0 auto;
    text-align: center;
}

tbody>tr:nth-child(odd) {
    background-color: pink;
}

tbody>tr:nth-child(even) {
    background-color: skyblue;
}

tbody>tr:hover {
    background-color: #ccc;
}  

div .shit {
    background-color: #ccc;
}            
            `
        )
        console.log(styles);
    </script> -->
</body>

</html>